﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x02000084 RID: 132
	internal class Bin8Bytes : IBytesDecoder
	{
		// Token: 0x06000247 RID: 583 RVA: 0x0000B2DD File Offset: 0x000096DD
		private Bin8Bytes()
		{
		}

		// Token: 0x06000248 RID: 584 RVA: 0x0000B2E8 File Offset: 0x000096E8
		public byte[] Read(byte[] bytes, int offset, out int readSize)
		{
			byte b = bytes[offset + 1];
			byte[] array = new byte[(int)b];
			Buffer.BlockCopy(bytes, offset + 2, array, 0, (int)b);
			readSize = (int)(b + 2);
			return array;
		}

		// Token: 0x040000AB RID: 171
		internal static readonly IBytesDecoder Instance = new Bin8Bytes();
	}
}
